home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / PRG / WASTE Object Handlers 1.2.2.sit / WASTE Object Handlers 1.2.2 / Other Headers / WASTE_Objects.h < prev    next >
Text File  |  1996-07-16  |  2KB  |  76 lines

  1. // WASTE Object public routines.
  2. //
  3. //        maintained by Michael F. Kamprath, kamprath@kagi.com
  4. //        and John C. Daub, hsoi@eden.com
  5. //
  6. // v1.2 28 March 1996.  Minor "compatability" updates.  Added more precompiler directives
  7. //                        Added new function prototypes
  8.  
  9. #ifndef _WASTEOBJECTS_
  10.     #define _WASTEOBJECTS_
  11.  
  12.  
  13. #ifndef __SOUND__
  14.     #include <Sound.h>
  15. #endif
  16.  
  17. #ifndef _WASTE_
  18.     #include "WASTE.h"
  19. #endif
  20.  
  21. #ifndef __ICONS__
  22.     #include <Icons.h>
  23. #endif
  24.  
  25. #ifndef __SOUNDINPUT__
  26.     #include <SoundInput.h>
  27. #endif
  28.  
  29. #if !defined(GENERATINGPOWERPC) && !defined(GENERATING68K)
  30. typedef Handle SndListHandle;
  31. #endif
  32.  
  33. #ifdef __cplusplus
  34. extern "C" {
  35. #endif
  36.  
  37. // Initialization
  38.  
  39. void    InitWASTEObjectHandlers( void );    // performs internal initializations
  40. void    ExitWASTEObjectHandlers( void );    // performs internal exit/clean-ups
  41.  
  42. OSErr    InstallAllWASTEObjHandlers( WEReference theWE );  // Installs all object handlers
  43.  
  44. OSErr    InstallPICTObject( WEReference theWE );
  45. OSErr    InstallSoundObject( WEReference theWE );
  46. OSErr    InstallHFSObject( WEReference theWE );
  47.  
  48. // Utility routines
  49.  
  50. OSErr            DoObjectTasks( WEReference theWE );    // perform periodic tasks for objects
  51. pascal OSErr    WEObjectsPaste( WEReference hWE );    // replaces WEPaste() to allow for special
  52.                                                     // handling of objects during a paste
  53.  
  54.  
  55.  
  56. // PICT Object public routines
  57.  
  58. // Sound object public routines
  59.  
  60. void    CheckSoundStatus( void );
  61. OSErr    PlaySelectedSound( WEReference theWE );
  62. OSErr    StopCurrentSound( void );
  63. Boolean    SoundIsPlaying( void );
  64.  
  65. OSErr    CreateNewSoundObject( WEReference theWE );
  66. OSErr    PlaySoundHandle( SndListHandle theSound );
  67.  
  68. // File object public routines
  69.  
  70. OSErr    InsertFileRefFromFSSpec( FSSpec *theFile, WEReference theWE );
  71.  
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75.  
  76. #endif // _WASTEOBJECTS_